package ooday03test;

public abstract class Person {
    public String name;
    public int age;
    public String salary;//工资

    //构造方法

    public Person() {
    }

    public Person(String name, int age, String salary) {
        this.name = name;
        this.age = age;
        this.salary = salary;
    }
    //方法，普通方法
    public void gotoWork(){
        System.out.println(name+"上班打卡成功！");
    }
    public void outWork(){
        System.out.println(name+"下班打卡成功！");
    }
    //完成工作是抽象方法
    public abstract void overWork();
}
